import React from 'react';
import { interval } from 'rxjs';
import { useObservable } from 'rxjs-hooks';

export default function Timer() {
  const val = useObservable(() => interval(200), 0);

  return <h1>count down {200 - val}</h1>
}
